home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / info.lzh / INFO / GCC_INFO.17 < prev    next >
Encoding:
GNU Info File  |  1993-10-21  |  49.6 KB  |  1,054 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.54 from the input
  2. file gcc.texi.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled "GNU General Public License" and "Protect
  15. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  16. original, and provided that the entire resulting derived work is
  17. distributed under the terms of a permission notice identical to this
  18. one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "GNU General Public
  23. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  24. permission notice, may be included in translations approved by the Free
  25. Software Foundation instead of in the original English.
  26.  
  27. File: gcc.info,  Node: Scalar Return,  Next: Aggregate Return,  Prev: Register Arguments,  Up: Stack and Calling
  28.  
  29. How Scalar Function Values Are Returned
  30. ---------------------------------------
  31.  
  32.    This section discusses the macros that control returning scalars as
  33. values--values that can fit in registers.
  34.  
  35. `TRADITIONAL_RETURN_FLOAT'
  36.      Define this macro if `-traditional' should not cause functions
  37.      declared to return `float' to convert the value to `double'.
  38.  
  39. `FUNCTION_VALUE (VALTYPE, FUNC)'
  40.      A C expression to create an RTX representing the place where a
  41.      function returns a value of data type VALTYPE.  VALTYPE is a tree
  42.      node representing a data type.  Write `TYPE_MODE (VALTYPE)' to get
  43.      the machine mode used to represent that type.  On many machines,
  44.      only the mode is relevant.  (Actually, on most machines, scalar
  45.      values are returned in the same place regardless of mode).
  46.  
  47.      If `PROMOTE_FUNCTION_RETURN' is defined, you must apply the same
  48.      promotion rules specified in `PROMOTE_MODE' if VALTYPE is a scalar
  49.      type.
  50.  
  51.      If the precise function being called is known, FUNC is a tree node
  52.      (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer.  This
  53.      makes it possible to use a different value-returning convention
  54.      for specific functions when all their calls are known.
  55.  
  56.      `FUNCTION_VALUE' is not used for return vales with aggregate data
  57.      types, because these are returned in another way.  See
  58.      `STRUCT_VALUE_REGNUM' and related macros, below.
  59.  
  60. `FUNCTION_OUTGOING_VALUE (VALTYPE, FUNC)'
  61.      Define this macro if the target machine has "register windows" so
  62.      that the register in which a function returns its value is not the
  63.      same as the one in which the caller sees the value.
  64.  
  65.      For such machines, `FUNCTION_VALUE' computes the register in which
  66.      the caller will see the value.  `FUNCTION_OUTGOING_VALUE' should be
  67.      defined in a similar fashion to tell the function where to put the
  68.      value.
  69.  
  70.      If `FUNCTION_OUTGOING_VALUE' is not defined, `FUNCTION_VALUE'
  71.      serves both purposes.
  72.  
  73.      `FUNCTION_OUTGOING_VALUE' is not used for return vales with
  74.      aggregate data types, because these are returned in another way.
  75.      See `STRUCT_VALUE_REGNUM' and related macros, below.
  76.  
  77. `LIBCALL_VALUE (MODE)'
  78.      A C expression to create an RTX representing the place where a
  79.      library function returns a value of mode MODE.  If the precise
  80.      function being called is known, FUNC is a tree node
  81.      (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer.  This
  82.      makes it possible to use a different value-returning convention
  83.      for specific functions when all their calls are known.
  84.  
  85.      Note that "library function" in this context means a compiler
  86.      support routine, used to perform arithmetic, whose name is known
  87.      specially by the compiler and was not mentioned in the C code being
  88.      compiled.
  89.  
  90.      The definition of `LIBRARY_VALUE' need not be concerned aggregate
  91.      data types, because none of the library functions returns such
  92.      types.
  93.  
  94. `FUNCTION_VALUE_REGNO_P (REGNO)'
  95.      A C expression that is nonzero if REGNO is the number of a hard
  96.      register in which the values of called function may come back.
  97.  
  98.      A register whose use for returning values is limited to serving as
  99.      the second of a pair (for a value of type `double', say) need not
  100.      be recognized by this macro.  So for most machines, this definition
  101.      suffices:
  102.  
  103.           #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
  104.  
  105.      If the machine has register windows, so that the caller and the
  106.      called function use different registers for the return value, this
  107.      macro should recognize only the caller's register numbers.
  108.  
  109. `APPLY_RESULT_SIZE'
  110.      Define this macro if `untyped_call' and `untyped_return' need more
  111.      space than is implied by `FUNCTION_VALUE_REGNO_P' for saving and
  112.      restoring an arbitrary return value.
  113.  
  114. File: gcc.info,  Node: Aggregate Return,  Next: Caller Saves,  Prev: Scalar Return,  Up: Stack and Calling
  115.  
  116. How Large Values Are Returned
  117. -----------------------------
  118.  
  119.    When a function value's mode is `BLKmode' (and in some other cases),
  120. the value is not returned according to `FUNCTION_VALUE' (*note Scalar
  121. Return::.).  Instead, the caller passes the address of a block of
  122. memory in which the value should be stored.  This address is called the
  123. "structure value address".
  124.  
  125.    This section describes how to control returning structure values in
  126. memory.
  127.  
  128. `RETURN_IN_MEMORY (TYPE)'
  129.      A C expression which can inhibit the returning of certain function
  130.      values in registers, based on the type of value.  A nonzero value
  131.      says to return the function value in memory, just as large
  132.      structures are always returned.  Here TYPE will be a C expression
  133.      of type `tree', representing the data type of the value.
  134.  
  135.      Note that values of mode `BLKmode' must be explicitly handled by
  136.      this macro.  Also, the option `-fpcc-struct-return' takes effect
  137.      regardless of this macro.  On most systems, it is possible to
  138.      leave the macro undefined; this causes a default definition to be
  139.      used, whose value is the constant 1 for `BLKmode' values, and 0
  140.      otherwise.
  141.  
  142.      Do not use this macro to indicate that structures and unions
  143.      should always be returned in memory.  You should instead use
  144.      `DEFAULT_PCC_STRUCT_RETURN' to indicate this.
  145.  
  146. `DEFAULT_PCC_STRUCT_RETURN'
  147.      Define this macro to be 1 if all structure and union return values
  148.      must be in memory.  Since this results in slower code, this should
  149.      be defined only if needed for compatibility with other compilers
  150.      or with an ABI.  If you define this macro to be 0, then the
  151.      conventions used for structure and union return values are decided
  152.      by the `RETURN_IN_MEMORY' macro.
  153.  
  154.      If not defined, this defaults to the value 1.
  155.  
  156. `STRUCT_VALUE_REGNUM'
  157.      If the structure value address is passed in a register, then
  158.      `STRUCT_VALUE_REGNUM' should be the number of that register.
  159.  
  160. `STRUCT_VALUE'
  161.      If the structure value address is not passed in a register, define
  162.      `STRUCT_VALUE' as an expression returning an RTX for the place
  163.      where the address is passed.  If it returns 0, the address is
  164.      passed as an "invisible" first argument.
  165.  
  166. `STRUCT_VALUE_INCOMING_REGNUM'
  167.      On some architectures the place where the structure value address
  168.      is found by the called function is not the same place that the
  169.      caller put it.  This can be due to register windows, or it could
  170.      be because the function prologue moves it to a different place.
  171.  
  172.      If the incoming location of the structure value address is in a
  173.      register, define this macro as the register number.
  174.  
  175. `STRUCT_VALUE_INCOMING'
  176.      If the incoming location is not a register, then you should define
  177.      `STRUCT_VALUE_INCOMING' as an expression for an RTX for where the
  178.      called function should find the value.  If it should find the
  179.      value on the stack, define this to create a `mem' which refers to
  180.      the frame pointer.  A definition of 0 means that the address is
  181.      passed as an "invisible" first argument.
  182.  
  183. `PCC_STATIC_STRUCT_RETURN'
  184.      Define this macro if the usual system convention on the target
  185.      machine for returning structures and unions is for the called
  186.      function to return the address of a static variable containing the
  187.      value.  GNU CC does not normally use this convention, even if it
  188.      is the usual one, but does use it if `-fpcc-struct-return' is
  189.      specified.
  190.  
  191.      Do not define this if the usual system convention is for the
  192.      caller to pass an address to the subroutine.
  193.  
  194. File: gcc.info,  Node: Caller Saves,  Next: Function Entry,  Prev: Aggregate Return,  Up: Stack and Calling
  195.  
  196. Caller-Saves Register Allocation
  197. --------------------------------
  198.  
  199.    If you enable it, GNU CC can save registers around function calls.
  200. This makes it possible to use call-clobbered registers to hold
  201. variables that must live across calls.
  202.  
  203. `DEFAULT_CALLER_SAVES'
  204.      Define this macro if function calls on the target machine do not
  205.      preserve any registers; in other words, if `CALL_USED_REGISTERS'
  206.      has 1 for all registers.  This macro enables `-fcaller-saves' by
  207.      default.  Eventually that option will be enabled by default on all
  208.      machines and both the option and this macro will be eliminated.
  209.  
  210. `CALLER_SAVE_PROFITABLE (REFS, CALLS)'
  211.      A C expression to determine whether it is worthwhile to consider
  212.      placing a pseudo-register in a call-clobbered hard register and
  213.      saving and restoring it around each function call.  The expression
  214.      should be 1 when this is worth doing, and 0 otherwise.
  215.  
  216.      If you don't define this macro, a default is used which is good on
  217.      most machines: `4 * CALLS < REFS'.
  218.  
  219. File: gcc.info,  Node: Function Entry,  Next: Profiling,  Prev: Caller Saves,  Up: Stack and Calling
  220.  
  221. Function Entry and Exit
  222. -----------------------
  223.  
  224.    This section describes the macros that output function entry
  225. ("prologue") and exit ("epilogue") code.
  226.  
  227. `FUNCTION_PROLOGUE (FILE, SIZE)'
  228.      A C compound statement that outputs the assembler code for entry
  229.      to a function.  The prologue is responsible for setting up the
  230.      stack frame, initializing the frame pointer register, saving
  231.      registers that must be saved, and allocating SIZE additional bytes
  232.      of storage for the local variables.  SIZE is an integer.  FILE is
  233.      a stdio stream to which the assembler code should be output.
  234.  
  235.      The label for the beginning of the function need not be output by
  236.      this macro.  That has already been done when the macro is run.
  237.  
  238.      To determine which registers to save, the macro can refer to the
  239.      array `regs_ever_live': element R is nonzero if hard register R is
  240.      used anywhere within the function.  This implies the function
  241.      prologue should save register R, provided it is not one of the
  242.      call-used registers.  (`FUNCTION_EPILOGUE' must likewise use
  243.      `regs_ever_live'.)
  244.  
  245.      On machines that have "register windows", the function entry code
  246.      does not save on the stack the registers that are in the windows,
  247.      even if they are supposed to be preserved by function calls;
  248.      instead it takes appropriate steps to "push" the register stack,
  249.      if any non-call-used registers are used in the function.
  250.  
  251.      On machines where functions may or may not have frame-pointers, the
  252.      function entry code must vary accordingly; it must set up the frame
  253.      pointer if one is wanted, and not otherwise.  To determine whether
  254.      a frame pointer is in wanted, the macro can refer to the variable
  255.      `frame_pointer_needed'.  The variable's value will be 1 at run
  256.      time in a function that needs a frame pointer.  *Note
  257.      Elimination::.
  258.  
  259.      The function entry code is responsible for allocating any stack
  260.      space required for the function.  This stack space consists of the
  261.      regions listed below.  In most cases, these regions are allocated
  262.      in the order listed, with the last listed region closest to the
  263.      top of the stack (the lowest address if `STACK_GROWS_DOWNWARD' is
  264.      defined, and the highest address if it is not defined).  You can
  265.      use a different order for a machine if doing so is more convenient
  266.      or required for compatibility reasons.  Except in cases where
  267.      required by standard or by a debugger, there is no reason why the
  268.      stack layout used by GCC need agree with that used by other
  269.      compilers for a machine.
  270.  
  271.         * A region of `current_function_pretend_args_size' bytes of
  272.           uninitialized space just underneath the first argument
  273.           arriving on the stack.  (This may not be at the very start of
  274.           the allocated stack region if the calling sequence has pushed
  275.           anything else since pushing the stack arguments.  But
  276.           usually, on such machines, nothing else has been pushed yet,
  277.           because the function prologue itself does all the pushing.)
  278.           This region is used on machines where an argument may be
  279.           passed partly in registers and partly in memory, and, in some
  280.           cases to support the features in `varargs.h' and `stdargs.h'.
  281.  
  282.         * An area of memory used to save certain registers used by the
  283.           function.  The size of this area, which may also include
  284.           space for such things as the return address and pointers to
  285.           previous stack frames, is machine-specific and usually
  286.           depends on which registers have been used in the function.
  287.           Machines with register windows often do not require a save
  288.           area.
  289.  
  290.         * A region of at least SIZE bytes, possibly rounded up to an
  291.           allocation boundary, to contain the local variables of the
  292.           function.  On some machines, this region and the save area
  293.           may occur in the opposite order, with the save area closer to
  294.           the top of the stack.
  295.  
  296.         * Optionally, when `ACCUMULATE_OUTGOING_ARGS' is defined, a
  297.           region of `current_function_outgoing_args_size' bytes to be
  298.           used for outgoing argument lists of the function.  *Note
  299.           Stack Arguments::.
  300.  
  301.      Normally, it is necessary for the macros `FUNCTION_PROLOGUE' and
  302.      `FUNCTION_EPILOGUE' to treat leaf functions specially.  The C
  303.      variable `leaf_function' is nonzero for such a function.
  304.  
  305. `EXIT_IGNORE_STACK'
  306.      Define this macro as a C expression that is nonzero if the return
  307.      instruction or the function epilogue ignores the value of the stack
  308.      pointer; in other words, if it is safe to delete an instruction to
  309.      adjust the stack pointer before a return from the function.
  310.  
  311.      Note that this macro's value is relevant only for functions for
  312.      which frame pointers are maintained.  It is never safe to delete a
  313.      final stack adjustment in a function that has no frame pointer,
  314.      and the compiler knows this regardless of `EXIT_IGNORE_STACK'.
  315.  
  316. `FUNCTION_EPILOGUE (FILE, SIZE)'
  317.      A C compound statement that outputs the assembler code for exit
  318.      from a function.  The epilogue is responsible for restoring the
  319.      saved registers and stack pointer to their values when the
  320.      function was called, and returning control to the caller.  This
  321.      macro takes the same arguments as the macro `FUNCTION_PROLOGUE',
  322.      and the registers to restore are determined from `regs_ever_live'
  323.      and `CALL_USED_REGISTERS' in the same way.
  324.  
  325.      On some machines, there is a single instruction that does all the
  326.      work of returning from the function.  On these machines, give that
  327.      instruction the name `return' and do not define the macro
  328.      `FUNCTION_EPILOGUE' at all.
  329.  
  330.      Do not define a pattern named `return' if you want the
  331.      `FUNCTION_EPILOGUE' to be used.  If you want the target switches
  332.      to control whether return instructions or epilogues are used,
  333.      define a `return' pattern with a validity condition that tests the
  334.      target switches appropriately.  If the `return' pattern's validity
  335.      condition is false, epilogues will be used.
  336.  
  337.      On machines where functions may or may not have frame-pointers, the
  338.      function exit code must vary accordingly.  Sometimes the code for
  339.      these two cases is completely different.  To determine whether a
  340.      frame pointer is wanted, the macro can refer to the variable
  341.      `frame_pointer_needed'.  The variable's value will be 1 at run time
  342.      in a function that needs a frame pointer.
  343.  
  344.      Normally, `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE' must treat
  345.      leaf functions specially.  The C variable `leaf_function' is
  346.      nonzero for such a function.  *Note Leaf Functions::.
  347.  
  348.      On some machines, some functions pop their arguments on exit while
  349.      others leave that for the caller to do.  For example, the 68020
  350.      when given `-mrtd' pops arguments in functions that take a fixed
  351.      number of arguments.
  352.  
  353.      Your definition of the macro `RETURN_POPS_ARGS' decides which
  354.      functions pop their own arguments.  `FUNCTION_EPILOGUE' needs to
  355.      know what was decided.  The variable that is called
  356.      `current_function_pops_args' is the number of bytes of its
  357.      arguments that a function should pop.  *Note Scalar Return::.
  358.  
  359. `DELAY_SLOTS_FOR_EPILOGUE'
  360.      Define this macro if the function epilogue contains delay slots to
  361.      which instructions from the rest of the function can be "moved".
  362.      The definition should be a C expression whose value is an integer
  363.      representing the number of delay slots there.
  364.  
  365. `ELIGIBLE_FOR_EPILOGUE_DELAY (INSN, N)'
  366.      A C expression that returns 1 if INSN can be placed in delay slot
  367.      number N of the epilogue.
  368.  
  369.      The argument N is an integer which identifies the delay slot now
  370.      being considered (since different slots may have different rules of
  371.      eligibility).  It is never negative and is always less than the
  372.      number of epilogue delay slots (what `DELAY_SLOTS_FOR_EPILOGUE'
  373.      returns).  If you reject a particular insn for a given delay slot,
  374.      in principle, it may be reconsidered for a subsequent delay slot.
  375.      Also, other insns may (at least in principle) be considered for
  376.      the so far unfilled delay slot.
  377.  
  378.      The insns accepted to fill the epilogue delay slots are put in an
  379.      RTL list made with `insn_list' objects, stored in the variable
  380.      `current_function_epilogue_delay_list'.  The insn for the first
  381.      delay slot comes first in the list.  Your definition of the macro
  382.      `FUNCTION_EPILOGUE' should fill the delay slots by outputting the
  383.      insns in this list, usually by calling `final_scan_insn'.
  384.  
  385.      You need not define this macro if you did not define
  386.      `DELAY_SLOTS_FOR_EPILOGUE'.
  387.  
  388. File: gcc.info,  Node: Profiling,  Prev: Function Entry,  Up: Stack and Calling
  389.  
  390. Generating Code for Profiling
  391. -----------------------------
  392.  
  393.    These macros will help you generate code for profiling.
  394.  
  395. `FUNCTION_PROFILER (FILE, LABELNO)'
  396.      A C statement or compound statement to output to FILE some
  397.      assembler code to call the profiling subroutine `mcount'.  Before
  398.      calling, the assembler code must load the address of a counter
  399.      variable into a register where `mcount' expects to find the
  400.      address.  The name of this variable is `LP' followed by the number
  401.      LABELNO, so you would generate the name using `LP%d' in a
  402.      `fprintf'.
  403.  
  404.      The details of how the address should be passed to `mcount' are
  405.      determined by your operating system environment, not by GNU CC.  To
  406.      figure them out, compile a small program for profiling using the
  407.      system's installed C compiler and look at the assembler code that
  408.      results.
  409.  
  410. `PROFILE_BEFORE_PROLOGUE'
  411.      Define this macro if the code for function profiling should come
  412.      before the function prologue.  Normally, the profiling code comes
  413.      after.
  414.  
  415. `FUNCTION_BLOCK_PROFILER (FILE, LABELNO)'
  416.      A C statement or compound statement to output to FILE some
  417.      assembler code to initialize basic-block profiling for the current
  418.      object module.  This code should call the subroutine
  419.      `__bb_init_func' once per object module, passing it as its sole
  420.      argument the address of a block allocated in the object module.
  421.  
  422.      The name of the block is a local symbol made with this statement:
  423.  
  424.           ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 0);
  425.  
  426.      Of course, since you are writing the definition of
  427.      `ASM_GENERATE_INTERNAL_LABEL' as well as that of this macro, you
  428.      can take a short cut in the definition of this macro and use the
  429.      name that you know will result.
  430.  
  431.      The first word of this block is a flag which will be nonzero if the
  432.      object module has already been initialized.  So test this word
  433.      first, and do not call `__bb_init_func' if the flag is nonzero.
  434.  
  435. `BLOCK_PROFILER (FILE, BLOCKNO)'
  436.      A C statement or compound statement to increment the count
  437.      associated with the basic block number BLOCKNO.  Basic blocks are
  438.      numbered separately from zero within each compilation.  The count
  439.      associated with block number BLOCKNO is at index BLOCKNO in a
  440.      vector of words; the name of this array is a local symbol made
  441.      with this statement:
  442.  
  443.           ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 2);
  444.  
  445.      Of course, since you are writing the definition of
  446.      `ASM_GENERATE_INTERNAL_LABEL' as well as that of this macro, you
  447.      can take a short cut in the definition of this macro and use the
  448.      name that you know will result.
  449.  
  450. File: gcc.info,  Node: Varargs,  Next: Trampolines,  Prev: Stack and Calling,  Up: Target Macros
  451.  
  452. Implementing the Varargs Macros
  453. ===============================
  454.  
  455.    GNU CC comes with an implementation of `varargs.h' and `stdarg.h'
  456. that work without change on machines that pass arguments on the stack.
  457. Other machines require their own implementations of varargs, and the
  458. two machine independent header files must have conditionals to include
  459. it.
  460.  
  461.    ANSI `stdarg.h' differs from traditional `varargs.h' mainly in the
  462. calling convention for `va_start'.  The traditional implementation
  463. takes just one argument, which is the variable in which to store the
  464. argument pointer.  The ANSI implementation of `va_start' takes an
  465. additional second argument.  The user is supposed to write the last
  466. named argument of the function here.
  467.  
  468.    However, `va_start' should not use this argument.  The way to find
  469. the end of the named arguments is with the built-in functions described
  470. below.
  471.  
  472. `__builtin_saveregs ()'
  473.      Use this built-in function to save the argument registers in
  474.      memory so that the varargs mechanism can access them.  Both ANSI
  475.      and traditional versions of `va_start' must use
  476.      `__builtin_saveregs', unless you use `SETUP_INCOMING_VARARGS' (see
  477.      below) instead.
  478.  
  479.      On some machines, `__builtin_saveregs' is open-coded under the
  480.      control of the macro `EXPAND_BUILTIN_SAVEREGS'.  On other machines,
  481.      it calls a routine written in assembler language, found in
  482.      `libgcc2.c'.
  483.  
  484.      Code generated for the call to `__builtin_saveregs' appears at the
  485.      beginning of the function, as opposed to where the call to
  486.      `__builtin_saveregs' is written, regardless of what the code is.
  487.      This is because the registers must be saved before the function
  488.      starts to use them for its own purposes.
  489.  
  490. `__builtin_args_info (CATEGORY)'
  491.      Use this built-in function to find the first anonymous arguments in
  492.      registers.
  493.  
  494.      In general, a machine may have several categories of registers
  495.      used for arguments, each for a particular category of data types.
  496.      (For example, on some machines, floating-point registers are used
  497.      for floating-point arguments while other arguments are passed in
  498.      the general registers.) To make non-varargs functions use the
  499.      proper calling convention, you have defined the `CUMULATIVE_ARGS'
  500.      data type to record how many registers in each category have been
  501.      used so far
  502.  
  503.      `__builtin_args_info' accesses the same data structure of type
  504.      `CUMULATIVE_ARGS' after the ordinary argument layout is finished
  505.      with it, with CATEGORY specifying which word to access.  Thus, the
  506.      value indicates the first unused register in a given category.
  507.  
  508.      Normally, you would use `__builtin_args_info' in the implementation
  509.      of `va_start', accessing each category just once and storing the
  510.      value in the `va_list' object.  This is because `va_list' will
  511.      have to update the values, and there is no way to alter the values
  512.      accessed by `__builtin_args_info'.
  513.  
  514. `__builtin_next_arg ()'
  515.      This is the equivalent of `__builtin_args_info', for stack
  516.      arguments.  It returns the address of the first anonymous stack
  517.      argument, as type `void *'. If `ARGS_GROW_DOWNWARD', it returns
  518.      the address of the location above the first anonymous stack
  519.      argument. Use it in `va_start' to initialize the pointer for
  520.      fetching arguments from the stack.
  521.  
  522. `__builtin_classify_type (OBJECT)'
  523.      Since each machine has its own conventions for which data types are
  524.      passed in which kind of register, your implementation of `va_arg'
  525.      has to embody these conventions.  The easiest way to categorize the
  526.      specified data type is to use `__builtin_classify_type' together
  527.      with `sizeof' and `__alignof__'.
  528.  
  529.      `__builtin_classify_type' ignores the value of OBJECT, considering
  530.      only its data type.  It returns an integer describing what kind of
  531.      type that is--integer, floating, pointer, structure, and so on.
  532.  
  533.      The file `typeclass.h' defines an enumeration that you can use to
  534.      interpret the values of `__builtin_classify_type'.
  535.  
  536.    These machine description macros help implement varargs:
  537.  
  538. `EXPAND_BUILTIN_SAVEREGS (ARGS)'
  539.      If defined, is a C expression that produces the machine-specific
  540.      code for a call to `__builtin_saveregs'.  This code will be moved
  541.      to the very beginning of the function, before any parameter access
  542.      are made.  The return value of this function should be an RTX that
  543.      contains the value to use as the return of `__builtin_saveregs'.
  544.  
  545.      The argument ARGS is a `tree_list' containing the arguments that
  546.      were passed to `__builtin_saveregs'.
  547.  
  548.      If this macro is not defined, the compiler will output an ordinary
  549.      call to the library function `__builtin_saveregs'.
  550.  
  551. `SETUP_INCOMING_VARARGS (ARGS_SO_FAR, MODE, TYPE,'
  552.      PRETEND_ARGS_SIZE, SECOND_TIME) This macro offers an alternative
  553.      to using `__builtin_saveregs' and defining the macro
  554.      `EXPAND_BUILTIN_SAVEREGS'.  Use it to store the anonymous register
  555.      arguments into the stack so that all the arguments appear to have
  556.      been passed consecutively on the stack.  Once this is done, you
  557.      can use the standard implementation of varargs that works for
  558.      machines that pass all their arguments on the stack.
  559.  
  560.      The argument ARGS_SO_FAR is the `CUMULATIVE_ARGS' data structure,
  561.      containing the values that obtain after processing of the named
  562.      arguments.  The arguments MODE and TYPE describe the last named
  563.      argument--its machine mode and its data type as a tree node.
  564.  
  565.      The macro implementation should do two things: first, push onto the
  566.      stack all the argument registers *not* used for the named
  567.      arguments, and second, store the size of the data thus pushed into
  568.      the `int'-valued variable whose name is supplied as the argument
  569.      PRETEND_ARGS_SIZE.  The value that you store here will serve as
  570.      additional offset for setting up the stack frame.
  571.  
  572.      Because you must generate code to push the anonymous arguments at
  573.      compile time without knowing their data types,
  574.      `SETUP_INCOMING_VARARGS' is only useful on machines that have just
  575.      a single category of argument register and use it uniformly for
  576.      all data types.
  577.  
  578.      If the argument SECOND_TIME is nonzero, it means that the
  579.      arguments of the function are being analyzed for the second time.
  580.      This happens for an inline function, which is not actually
  581.      compiled until the end of the source file.  The macro
  582.      `SETUP_INCOMING_VARARGS' should not generate any instructions in
  583.      this case.
  584.  
  585. File: gcc.info,  Node: Trampolines,  Next: Library Calls,  Prev: Varargs,  Up: Target Macros
  586.  
  587. Trampolines for Nested Functions
  588. ================================
  589.  
  590.    A "trampoline" is a small piece of code that is created at run time
  591. when the address of a nested function is taken.  It normally resides on
  592. the stack, in the stack frame of the containing function.  These macros
  593. tell GNU CC how to generate code to allocate and initialize a
  594. trampoline.
  595.  
  596.    The instructions in the trampoline must do two things: load a
  597. constant address into the static chain register, and jump to the real
  598. address of the nested function.  On CISC machines such as the m68k,
  599. this requires two instructions, a move immediate and a jump.  Then the
  600. two addresses exist in the trampoline as word-long immediate operands.
  601. On RISC machines, it is often necessary to load each address into a
  602. register in two parts.  Then pieces of each address form separate
  603. immediate operands.
  604.  
  605.    The code generated to initialize the trampoline must store the
  606. variable parts--the static chain value and the function address--into
  607. the immediate operands of the instructions.  On a CISC machine, this is
  608. simply a matter of copying each address to a memory reference at the
  609. proper offset from the start of the trampoline.  On a RISC machine, it
  610. may be necessary to take out pieces of the address and store them
  611. separately.
  612.  
  613. `TRAMPOLINE_TEMPLATE (FILE)'
  614.      A C statement to output, on the stream FILE, assembler code for a
  615.      block of data that contains the constant parts of a trampoline.
  616.      This code should not include a label--the label is taken care of
  617.      automatically.
  618.  
  619. `TRAMPOLINE_SECTION'
  620.      The name of a subroutine to switch to the section in which the
  621.      trampoline template is to be placed (*note Sections::.).  The
  622.      default is a value of `readonly_data_section', which places the
  623.      trampoline in the section containing read-only data.
  624.  
  625. `TRAMPOLINE_SIZE'
  626.      A C expression for the size in bytes of the trampoline, as an
  627.      integer.
  628.  
  629. `TRAMPOLINE_ALIGNMENT'
  630.      Alignment required for trampolines, in bits.
  631.  
  632.      If you don't define this macro, the value of `BIGGEST_ALIGNMENT'
  633.      is used for aligning trampolines.
  634.  
  635. `INITIALIZE_TRAMPOLINE (ADDR, FNADDR, STATIC_CHAIN)'
  636.      A C statement to initialize the variable parts of a trampoline.
  637.      aDDR is an RTX for the address of the trampoline; FNADDR is an RTX
  638.      for the address of the nested function; STATIC_CHAIN is an RTX for
  639.      the static chain value that should be passed to the function when
  640.      it is called.
  641.  
  642. `ALLOCATE_TRAMPOLINE (FP)'
  643.      A C expression to allocate run-time space for a trampoline.  The
  644.      expression value should be an RTX representing a memory reference
  645.      to the space for the trampoline.
  646.  
  647.      If this macro is not defined, by default the trampoline is
  648.      allocated as a stack slot.  This default is right for most
  649.      machines.  The exceptions are machines where it is impossible to
  650.      execute instructions in the stack area.  On such machines, you may
  651.      have to implement a separate stack, using this macro in
  652.      conjunction with `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE'.
  653.  
  654.      FP points to a data structure, a `struct function', which
  655.      describes the compilation status of the immediate containing
  656.      function of the function which the trampoline is for.  Normally
  657.      (when `ALLOCATE_TRAMPOLINE' is not defined), the stack slot for the
  658.      trampoline is in the stack frame of this containing function.
  659.      Other allocation strategies probably must do something analogous
  660.      with this information.
  661.  
  662.    Implementing trampolines is difficult on many machines because they
  663. have separate instruction and data caches.  Writing into a stack
  664. location fails to clear the memory in the instruction cache, so when
  665. the program jumps to that location, it executes the old contents.
  666.  
  667.    Here are two possible solutions.  One is to clear the relevant parts
  668. of the instruction cache whenever a trampoline is set up.  The other is
  669. to make all trampolines identical, by having them jump to a standard
  670. subroutine.  The former technique makes trampoline execution faster; the
  671. latter makes initialization faster.
  672.  
  673.    To clear the instruction cache when a trampoline is initialized,
  674. define the following macros which describe the shape of the cache.
  675.  
  676. `INSN_CACHE_SIZE'
  677.      The total size in bytes of the cache.
  678.  
  679. `INSN_CACHE_LINE_WIDTH'
  680.      The length in bytes of each cache line.  The cache is divided into
  681.      cache lines which are disjoint slots, each holding a contiguous
  682.      chunk of data fetched from memory.  Each time data is brought into
  683.      the cache, an entire line is read at once.  The data loaded into a
  684.      cache line is always aligned on a boundary equal to the line size.
  685.  
  686. `INSN_CACHE_DEPTH'
  687.      The number of alternative cache lines that can hold any particular
  688.      memory location.
  689.  
  690.    To use a standard subroutine, define the following macro.  In
  691. addition, you must make sure that the instructions in a trampoline fill
  692. an entire cache line with identical instructions, or else ensure that
  693. the beginning of the trampoline code is always aligned at the same
  694. point in its cache line.  Look in `m68k.h' as a guide.
  695.  
  696. `TRANSFER_FROM_TRAMPOLINE'
  697.      Define this macro if trampolines need a special subroutine to do
  698.      their work.  The macro should expand to a series of `asm'
  699.      statements which will be compiled with GNU CC.  They go in a
  700.      library function named `__transfer_from_trampoline'.
  701.  
  702.      If you need to avoid executing the ordinary prologue code of a
  703.      compiled C function when you jump to the subroutine, you can do so
  704.      by placing a special label of your own in the assembler code.  Use
  705.      one `asm' statement to generate an assembler label, and another to
  706.      make the label global.  Then trampolines can use that label to
  707.      jump directly to your special assembler code.
  708.  
  709. File: gcc.info,  Node: Library Calls,  Next: Addressing Modes,  Prev: Trampolines,  Up: Target Macros
  710.  
  711. Implicit Calls to Library Routines
  712. ==================================
  713.  
  714. `MULSI3_LIBCALL'
  715.      A C string constant giving the name of the function to call for
  716.      multiplication of one signed full-word by another.  If you do not
  717.      define this macro, the default name is used, which is `__mulsi3',
  718.      a function defined in `libgcc.a'.
  719.  
  720. `DIVSI3_LIBCALL'
  721.      A C string constant giving the name of the function to call for
  722.      division of one signed full-word by another.  If you do not define
  723.      this macro, the default name is used, which is `__divsi3', a
  724.      function defined in `libgcc.a'.
  725.  
  726. `UDIVSI3_LIBCALL'
  727.      A C string constant giving the name of the function to call for
  728.      division of one unsigned full-word by another.  If you do not
  729.      define this macro, the default name is used, which is `__udivsi3',
  730.      a function defined in `libgcc.a'.
  731.  
  732. `MODSI3_LIBCALL'
  733.      A C string constant giving the name of the function to call for the
  734.      remainder in division of one signed full-word by another.  If you
  735.      do not define this macro, the default name is used, which is
  736.      `__modsi3', a function defined in `libgcc.a'.
  737.  
  738. `UMODSI3_LIBCALL'
  739.      A C string constant giving the name of the function to call for the
  740.      remainder in division of one unsigned full-word by another.  If
  741.      you do not define this macro, the default name is used, which is
  742.      `__umodsi3', a function defined in `libgcc.a'.
  743.  
  744. `MULDI3_LIBCALL'
  745.      A C string constant giving the name of the function to call for
  746.      multiplication of one signed double-word by another.  If you do not
  747.      define this macro, the default name is used, which is `__muldi3',
  748.      a function defined in `libgcc.a'.
  749.  
  750. `DIVDI3_LIBCALL'
  751.      A C string constant giving the name of the function to call for
  752.      division of one signed double-word by another.  If you do not
  753.      define this macro, the default name is used, which is `__divdi3', a
  754.      function defined in `libgcc.a'.
  755.  
  756. `UDIVDI3_LIBCALL'
  757.      A C string constant giving the name of the function to call for
  758.      division of one unsigned full-word by another.  If you do not
  759.      define this macro, the default name is used, which is `__udivdi3',
  760.      a function defined in `libgcc.a'.
  761.  
  762. `MODDI3_LIBCALL'
  763.      A C string constant giving the name of the function to call for the
  764.      remainder in division of one signed double-word by another.  If
  765.      you do not define this macro, the default name is used, which is
  766.      `__moddi3', a function defined in `libgcc.a'.
  767.  
  768. `UMODDI3_LIBCALL'
  769.      A C string constant giving the name of the function to call for the
  770.      remainder in division of one unsigned full-word by another.  If
  771.      you do not define this macro, the default name is used, which is
  772.      `__umoddi3', a function defined in `libgcc.a'.
  773.  
  774. `TARGET_EDOM'
  775.      The value of `EDOM' on the target machine, as a C integer constant
  776.      expression.  If you don't define this macro, GNU CC does not
  777.      attempt to deposit the value of `EDOM' into `errno' directly.
  778.      Look in `/usr/include/errno.h' to find the value of `EDOM' on your
  779.      system.
  780.  
  781.      If you do not define `TARGET_EDOM', then compiled code reports
  782.      domain errors by calling the library function and letting it
  783.      report the error.  If mathematical functions on your system use
  784.      `matherr' when there is an error, then you should leave
  785.      `TARGET_EDOM' undefined so that `matherr' is used normally.
  786.  
  787. `GEN_ERRNO_RTX'
  788.      Define this macro as a C expression to create an rtl expression
  789.      that refers to the global "variable" `errno'.  (On certain systems,
  790.      `errno' may not actually be a variable.)  If you don't define this
  791.      macro, a reasonable default is used.
  792.  
  793. `TARGET_MEM_FUNCTIONS'
  794.      Define this macro if GNU CC should generate calls to the System V
  795.      (and ANSI C) library functions `memcpy' and `memset' rather than
  796.      the BSD functions `bcopy' and `bzero'.
  797.  
  798. `LIBGCC_NEEDS_DOUBLE'
  799.      Define this macro if only `float' arguments cannot be passed to
  800.      library routines (so they must be converted to `double').  This
  801.      macro affects both how library calls are generated and how the
  802.      library routines in `libgcc1.c' accept their arguments.  It is
  803.      useful on machines where floating and fixed point arguments are
  804.      passed differently, such as the i860.
  805.  
  806. `FLOAT_ARG_TYPE'
  807.      Define this macro to override the type used by the library
  808.      routines to pick up arguments of type `float'.  (By default, they
  809.      use a union of `float' and `int'.)
  810.  
  811.      The obvious choice would be `float'--but that won't work with
  812.      traditional C compilers that expect all arguments declared as
  813.      `float' to arrive as `double'.  To avoid this conversion, the
  814.      library routines ask for the value as some other type and then
  815.      treat it as a `float'.
  816.  
  817.      On some systems, no other type will work for this.  For these
  818.      systems, you must use `LIBGCC_NEEDS_DOUBLE' instead, to force
  819.      conversion of the values `double' before they are passed.
  820.  
  821. `FLOATIFY (PASSED-VALUE)'
  822.      Define this macro to override the way library routines redesignate
  823.      a `float' argument as a `float' instead of the type it was passed
  824.      as.  The default is an expression which takes the `float' field of
  825.      the union.
  826.  
  827. `FLOAT_VALUE_TYPE'
  828.      Define this macro to override the type used by the library
  829.      routines to return values that ought to have type `float'.  (By
  830.      default, they use `int'.)
  831.  
  832.      The obvious choice would be `float'--but that won't work with
  833.      traditional C compilers gratuitously convert values declared as
  834.      `float' into `double'.
  835.  
  836. `INTIFY (FLOAT-VALUE)'
  837.      Define this macro to override the way the value of a
  838.      `float'-returning library routine should be packaged in order to
  839.      return it.  These functions are actually declared to return type
  840.      `FLOAT_VALUE_TYPE' (normally `int').
  841.  
  842.      These values can't be returned as type `float' because traditional
  843.      C compilers would gratuitously convert the value to a `double'.
  844.  
  845.      A local variable named `intify' is always available when the macro
  846.      `INTIFY' is used.  It is a union of a `float' field named `f' and
  847.      a field named `i' whose type is `FLOAT_VALUE_TYPE' or `int'.
  848.  
  849.      If you don't define this macro, the default definition works by
  850.      copying the value through that union.
  851.  
  852. `nongcc_SI_type'
  853.      Define this macro as the name of the data type corresponding to
  854.      `SImode' in the system's own C compiler.
  855.  
  856.      You need not define this macro if that type is `long int', as it
  857.      usually is.
  858.  
  859. `nongcc_word_type'
  860.      Define this macro as the name of the data type corresponding to the
  861.      word_mode in the system's own C compiler.
  862.  
  863.      You need not define this macro if that type is `long int', as it
  864.      usually is.
  865.  
  866. `perform_...'
  867.      Define these macros to supply explicit C statements to carry out
  868.      various arithmetic operations on types `float' and `double' in the
  869.      library routines in `libgcc1.c'.  See that file for a full list of
  870.      these macros and their arguments.
  871.  
  872.      On most machines, you don't need to define any of these macros,
  873.      because the C compiler that comes with the system takes care of
  874.      doing them.
  875.  
  876. `NEXT_OBJC_RUNTIME'
  877.      Define this macro to generate code for Objective C message sending
  878.      using the calling convention of the NeXT system.  This calling
  879.      convention involves passing the object, the selector and the
  880.      method arguments all at once to the method-lookup library function.
  881.  
  882.      The default calling convention passes just the object and the
  883.      selector to the lookup function, which returns a pointer to the
  884.      method.
  885.  
  886. File: gcc.info,  Node: Addressing Modes,  Next: Condition Code,  Prev: Library Calls,  Up: Target Macros
  887.  
  888. Addressing Modes
  889. ================
  890.  
  891. `HAVE_POST_INCREMENT'
  892.      Define this macro if the machine supports post-increment
  893.      addressing.
  894.  
  895. `HAVE_PRE_INCREMENT'
  896. `HAVE_POST_DECREMENT'
  897. `HAVE_PRE_DECREMENT'
  898.      Similar for other kinds of addressing.
  899.  
  900. `CONSTANT_ADDRESS_P (X)'
  901.      A C expression that is 1 if the RTX X is a constant which is a
  902.      valid address.  On most machines, this can be defined as
  903.      `CONSTANT_P (X)', but a few machines are more restrictive in which
  904.      constant addresses are supported.
  905.  
  906.      `CONSTANT_P' accepts integer-values expressions whose values are
  907.      not explicitly known, such as `symbol_ref', `label_ref', and
  908.      `high' expressions and `const' arithmetic expressions, in addition
  909.      to `const_int' and `const_double' expressions.
  910.  
  911. `MAX_REGS_PER_ADDRESS'
  912.      A number, the maximum number of registers that can appear in a
  913.      valid memory address.  Note that it is up to you to specify a
  914.      value equal to the maximum number that `GO_IF_LEGITIMATE_ADDRESS'
  915.      would ever accept.
  916.  
  917. `GO_IF_LEGITIMATE_ADDRESS (MODE, X, LABEL)'
  918.      A C compound statement with a conditional `goto LABEL;' executed
  919.      if X (an RTX) is a legitimate memory address on the target machine
  920.      for a memory operand of mode MODE.
  921.  
  922.      It usually pays to define several simpler macros to serve as
  923.      subroutines for this one.  Otherwise it may be too complicated to
  924.      understand.
  925.  
  926.      This macro must exist in two variants: a strict variant and a
  927.      non-strict one.  The strict variant is used in the reload pass.  It
  928.      must be defined so that any pseudo-register that has not been
  929.      allocated a hard register is considered a memory reference.  In
  930.      contexts where some kind of register is required, a pseudo-register
  931.      with no hard register must be rejected.
  932.  
  933.      The non-strict variant is used in other passes.  It must be
  934.      defined to accept all pseudo-registers in every context where some
  935.      kind of register is required.
  936.  
  937.      Compiler source files that want to use the strict variant of this
  938.      macro define the macro `REG_OK_STRICT'.  You should use an `#ifdef
  939.      REG_OK_STRICT' conditional to define the strict variant in that
  940.      case and the non-strict variant otherwise.
  941.  
  942.      Subroutines to check for acceptable registers for various purposes
  943.      (one for base registers, one for index registers, and so on) are
  944.      typically among the subroutines used to define
  945.      `GO_IF_LEGITIMATE_ADDRESS'.  Then only these subroutine macros
  946.      need have two variants; the higher levels of macros may be the
  947.      same whether strict or not.
  948.  
  949.      Normally, constant addresses which are the sum of a `symbol_ref'
  950.      and an integer are stored inside a `const' RTX to mark them as
  951.      constant.  Therefore, there is no need to recognize such sums
  952.      specifically as legitimate addresses.  Normally you would simply
  953.      recognize any `const' as legitimate.
  954.  
  955.      Usually `PRINT_OPERAND_ADDRESS' is not prepared to handle constant
  956.      sums that are not marked with  `const'.  It assumes that a naked
  957.      `plus' indicates indexing.  If so, then you *must* reject such
  958.      naked constant sums as illegitimate addresses, so that none of
  959.      them will be given to `PRINT_OPERAND_ADDRESS'.
  960.  
  961.      On some machines, whether a symbolic address is legitimate depends
  962.      on the section that the address refers to.  On these machines,
  963.      define the macro `ENCODE_SECTION_INFO' to store the information
  964.      into the `symbol_ref', and then check for it here.  When you see a
  965.      `const', you will have to look inside it to find the `symbol_ref'
  966.      in order to determine the section.  *Note Assembler Format::.
  967.  
  968.      The best way to modify the name string is by adding text to the
  969.      beginning, with suitable punctuation to prevent any ambiguity.
  970.      Allocate the new name in `saveable_obstack'.  You will have to
  971.      modify `ASM_OUTPUT_LABELREF' to remove and decode the added text
  972.      and output the name accordingly, and define `STRIP_NAME_ENCODING'
  973.      to access the original name string.
  974.  
  975.      You can check the information stored here into the `symbol_ref' in
  976.      the definitions of the macros `GO_IF_LEGITIMATE_ADDRESS' and
  977.      `PRINT_OPERAND_ADDRESS'.
  978.  
  979. `REG_OK_FOR_BASE_P (X)'
  980.      A C expression that is nonzero if X (assumed to be a `reg' RTX) is
  981.      valid for use as a base register.  For hard registers, it should
  982.      always accept those which the hardware permits and reject the
  983.      others.  Whether the macro accepts or rejects pseudo registers
  984.      must be controlled by `REG_OK_STRICT' as described above.  This
  985.      usually requires two variant definitions, of which `REG_OK_STRICT'
  986.      controls the one actually used.
  987.  
  988. `REG_OK_FOR_INDEX_P (X)'
  989.      A C expression that is nonzero if X (assumed to be a `reg' RTX) is
  990.      valid for use as an index register.
  991.  
  992.      The difference between an index register and a base register is
  993.      that the index register may be scaled.  If an address involves the
  994.      sum of two registers, neither one of them scaled, then either one
  995.      may be labeled the "base" and the other the "index"; but whichever
  996.      labeling is used must fit the machine's constraints of which
  997.      registers may serve in each capacity.  The compiler will try both
  998.      labelings, looking for one that is valid, and will reload one or
  999.      both registers only if neither labeling works.
  1000.  
  1001. `LEGITIMIZE_ADDRESS (X, OLDX, MODE, WIN)'
  1002.      A C compound statement that attempts to replace X with a valid
  1003.      memory address for an operand of mode MODE.  WIN will be a C
  1004.      statement label elsewhere in the code; the macro definition may use
  1005.  
  1006.           GO_IF_LEGITIMATE_ADDRESS (MODE, X, WIN);
  1007.  
  1008.      to avoid further processing if the address has become legitimate.
  1009.  
  1010.      X will always be the result of a call to `break_out_memory_refs',
  1011.      and OLDX will be the operand that was given to that function to
  1012.      produce X.
  1013.  
  1014.      The code generated by this macro should not alter the substructure
  1015.      of X.  If it transforms X into a more legitimate form, it should
  1016.      assign X (which will always be a C variable) a new value.
  1017.  
  1018.      It is not necessary for this macro to come up with a legitimate
  1019.      address.  The compiler has standard ways of doing so in all cases.
  1020.      In fact, it is safe for this macro to do nothing.  But often a
  1021.      machine-dependent strategy can generate better code.
  1022.  
  1023. `GO_IF_MODE_DEPENDENT_ADDRESS (ADDR, LABEL)'
  1024.      A C statement or compound statement with a conditional `goto
  1025.      LABEL;' executed if memory address X (an RTX) can have different
  1026.      meanings depending on the machine mode of the memory reference it
  1027.      is used for or if the address is valid for some modes but not
  1028.      others.
  1029.  
  1030.      Autoincrement and autodecrement addresses typically have
  1031.      mode-dependent effects because the amount of the increment or
  1032.      decrement is the size of the operand being addressed.  Some
  1033.      machines have other mode-dependent addresses.  Many RISC machines
  1034.      have no mode-dependent addresses.
  1035.  
  1036.      You may assume that ADDR is a valid address for the machine.
  1037.  
  1038. `LEGITIMATE_CONSTANT_P (X)'
  1039.      A C expression that is nonzero if X is a legitimate constant for
  1040.      an immediate operand on the target machine.  You can assume that X
  1041.      satisfies `CONSTANT_P', so you need not check this.  In fact, `1'
  1042.      is a suitable definition for this macro on machines where anything
  1043.      `CONSTANT_P' is valid.
  1044.  
  1045. ə